calendar: Use the new "%OB" format if supported
authorRafal Luzynski <digitalfreak@lingonborough.com>
Sat, 10 Feb 2018 13:07:56 +0000 (14:07 +0100)
committerRafal Luzynski <digitalfreak@lingonborough.com>
Mon, 12 Feb 2018 21:09:28 +0000 (22:09 +0100)
commitcbf118c285b2b66d77389fe769a60c59fcdb1269
tree624099e2889ec309cfd09c4153cc575b66407c3c
parent4b1c02560f0d8097bf5a11932e52fb72f3e9e94b
calendar: Use the new "%OB" format if supported

Due to the recent changes introduced in glibc 2.27 "%OB" is the
correct format to obtain a month name as used in the calendar
header.  The same rule has been working in BSD family (including
OS X) since 1990s.  This simple hack checks whether "%OB" is supported
at runtime and uses it if it is, falls back to the old "%B" otherwise.

Closes: #9
gtk/gtkcalendar.c